package com.qf.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.entity.TlCar;
import com.qf.entity.TlCity;
import com.qf.mapper.AdminCityMapper;
import com.qf.service.AdminCityService;
import com.qf.utils.ResultMsg;
import org.springframework.stereotype.Service;

@Service
public class AdminCityServiceImpl extends ServiceImpl<AdminCityMapper,TlCity> implements AdminCityService {
    @Override
    public ResultMsg findAllCitys(int page, int limit) {
        Page<TlCity> tlcity = new Page<>(page, limit);
        Page<TlCity> page1 = super.page(tlcity);
        return ResultMsg.SUCCESS(page1);

    }
}
